package org.meteorshower.employee_depart.controller;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meteorshower.cms_common.controller.BaseController;
import org.meteorshower.employee_depart.entity.JobLevel;
import org.meteorshower.employee_depart.service.JobLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 职工等级类控制层
 * @author Meteorshower
 * @version 1.0
 * @since 2025-06-08
 * @see org.meteorshower.cms_common.controller.BaseController 继承自BaseController
 * @apiNote 默认CRUD已实现，更多额外功能需要额外添加
 * */
@RequestMapping("api/level")
@RestController
@ResponseBody
public class JobLevelController extends BaseController<JobLevel> {

    private final JobLevelService jobLevelService;

    @Autowired
    public JobLevelController(JobLevelService jobLevelService) {
        this.jobLevelService = jobLevelService;
    }
    @Override
    public IService<JobLevel> getService() {
        return jobLevelService;
    }
}
